package org.xdq.工厂模式;

public class Test {

    public static void main(String[] args) {
        Fruit fruit1 = FruitFactory.createFreate(FruitFactory.TYPE_BANANA);
        Fruit fruit2 = FruitFactory.createFreate(FruitFactory.TYPE_APPLE);
        Fruit fruit3 = FruitFactory.createFreate(FruitFactory.TYPE_Strawberry);

        fruit1.show();
        fruit2.show();
        fruit3.show();


    }
}
